#!/bin/sh
for file in *.cpp; do
  echo "${file%.*}" 
  g++ -std=c++11 $file -o ${file%.cpp} -lboost_system -lpthread -lssl -lcrypto -lboost_serialization
  #./${file%.cpp}
done


# g++ -std=c++11 boost_test.cpp -o boost_test -lboost_system -lpthread
# g++ -std=c++11 boost_sync_timer.cpp -o boost_sync_timer -lboost_system -lpthread
# g++ -std=c++11 boost_sync_tcp_client.cpp -o boost_sync_tcp_client -lboost_system -lpthread
# g++ -std=c++11 boost_sync_tcp_server.cpp -o boost_sync_tcp_server -lboost_system -lpthread